﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using DAL;
using Utils;
namespace BLL
{
  public  class CourseBiz
    {
      string tableName = "Admin_Train_Course";
      CourseDao courseDao = new CourseDao();
        public bool Insert(SortedDictionary<string, string> sdList)
        {
            return courseDao.Insert(tableName, sdList);
        }


        public bool Update(SortedDictionary<string, string> sdList)
        {
            return courseDao.Update(tableName, sdList);
        }



        #region Course
        public bool DeleteOneInfo(string teacherCode)
        {
            return courseDao.DeleteOneInfo(teacherCode);
        }
        //获取一条记录
        public DataTable GetOneInfo(string teacherCode)
        {
            return courseDao.GetOneInfo(teacherCode);
        }

        //列表
        public DataTable GetLists(string serWord, string statu)
        {
            return courseDao.GetLists(serWord, statu);
            //if (dataSet.Tables[0].Rows.Count <= 0)
            //{
            //    for (int i = 0; i < 5; i++)
            //    {
            //        DataRow dr = dataSet.Tables[0].NewRow();
            //        dataSet.Tables[0].Rows.Add(dr);
            //    }
            //}

        }
        #endregion
    }
}
